<?php
defined('MCACHE_DEBUG')             || define('MCACHE_DEBUG', false);
defined('MCACHE_DEV_SERVER')        || define('MCACHE_DEV_SERVER', false);
defined('MCACHE_CONNECT_TIMEOUT')   || define('MCACHE_CONNECT_TIMEOUT', 1);

//最新中奖纪录
defined('MCACHE_ACT_XYDZP_NEW_LIST')    || define('MCACHE_ACT_XYDZP_NEW_LIST', 'act_xydzp_new_list_v2');
//分页中奖纪录
defined('MCACHE_ACT_XYDZP_ALL_LIST_PAGE')    || define('MCACHE_ACT_XYDZP_ALL_LIST_PAGE', 'act_xydzp_all_list_page_v2');
//角色昵称
defined('MCACHE_ACT_XYDZP_USER_NICKNAME')    || define('MCACHE_ACT_XYDZP_USER_NICKNAME', 'act_xydzp_user_nickname_v2');
//抽奖时间间隔
defined('MCACHE_ACT_XYDZP_LOTTERY_LIMIT')    || define('MCACHE_ACT_XYDZP_LOTTERY_LIMIT', "act_xydzp_lottery_limit_v2");
//抽奖次数
defined('MCACHE_ACT_XYDZP_LOTTERY_NUM')    || define('MCACHE_ACT_XYDZP_LOTTERY_NUM', "act_xydzp_lottery_num_v2");
//PARTNER表参与者
defined('MCACHE_ACT_XYDZP_PARTNER')    || define('MCACHE_ACT_XYDZP_PARTNER', "act_xydzp_partner_v2");

/**** getCacheServer start **************************/
function &getCacheServer($const_server)
{

    $ret = array();

    switch ($const_server) 
    {
        case MCACHE_ACT_XYDZP_NEW_LIST:    
		case MCACHE_ACT_XYDZP_ALL_LIST_PAGE:     
		case MCACHE_ACT_XYDZP_USER_NICKNAME:    
		case MCACHE_ACT_XYDZP_LOTTERY_LIMIT:
		case MCACHE_ACT_XYDZP_LOTTERY_NUM:
		case MCACHE_ACT_XYDZP_PARTNER:			
            $ret[0] = array( 'host' => '10.21.2.135', 'port' => 11212);		
            break;
         default:
            if (MCACHE_DEBUG) { var_dump(func_get_args()); }
    }

    return $ret;
}
?>